# coding=utf-8
import xlrd
from xlutils.copy import copy

class Xls(object):
    # def __init__(self):
    #     pass
    def writeExcel(self,row,col,nr):
        rb = xlrd.open_workbook('3.xls', formatting_info=True)
        wb = copy(rb)
        ws = wb.get_sheet(0)#页码
        ws.write(row, col,nr)#行数，列数，内容，
        wb.save('3.xls')
# mm = Xls()